from Page.page_login_ht import HTLogin
from Page.page_management import Managemnet
from Tools.tools import DriverTools


class TestManagement(object):
    def setup_method(self):
        driver = DriverTools.get_driver()
        driver.get("http://121.43.169.97:8082/")
        self.login = HTLogin(driver)
        self.man = Managemnet(driver)
        self.login.HTLogin("admin", "HM_2023_test", "8888")

    def teardown_method(self):
        DriverTools.close_driver()

    def test_management_search_name(self):
        self.man.management_search_name("测试11")
        self.man.get_shot("test07_management.png")
